package demo2;

class Person implements Cloneable{
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
public class Test {

    public static void main(String[] args) throws CloneNotSupportedException{
        Person person = new Person();
        Person person1 = (Person)person.clone();
    }
    public static void func() {
        func();
    }
    public static void main1(String[] args) {
        /*func();*/
        //System.out.println(10/0);
        int[] array = null;
        System.out.println(array.length);
    }
}